#include <iostream>
#include <memory>
#include "poll_server.hpp"

void usage(const std::string& proc)
{
    std::cout << "Uasge:\n\t" << proc << " port\n" << std::endl;
}

int main(int argc, char* argv[])
{
    if (argc != 2)
    {
        usage(argv[0]);
        exit(1);
    }
    uint16_t port = std::stoi(argv[1]);

    std::unique_ptr<server::poll_server> psvr(new server::poll_server(port));
    psvr->start();
    
    return 0;
}


